﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Dynamic; 
namespace Skynet.WPF4.Presenters.NewControls
{
    public class NewControlsPresenter : Infrastructure.WpfClient.Views.Master.MasterPresenter<Views.NewControls.INewControlsView>
    {
        public ObservableCollection<ExpandoObject> Authors { get; set; }
        public NewControlsPresenter()
        {
            
        }
        public override void OnViewReady()
        {
            this.Authors = new ObservableCollection<ExpandoObject>();
            dynamic item = new ExpandoObject();
            item.nombre = "carlos";
            item.website = "www.bing.com";
            item.gender = "male";
            item.image = @"http://e.peru21.pe/102/ima/0/0/1/6/8/168082.jpg";

            dynamic otheritem = new ExpandoObject();
            otheritem.nombre = "maria";
            otheritem.website = "www.google.com";
            otheritem.gender = "female";
            otheritem.image = @"http://e.peru21.pe/102/ima/0/0/1/6/8/168082.jpg";

            this.Authors.Add(item);
            this.Authors.Add(otheritem);
            this.InvokePropertyChanged("Authors");
        }

    }
}
